﻿using PMS.Domain.AggregatesModel.ProjectAggregate;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace PMS.Application.ProjectApp
{

    /// <summary>
    /// Project Service For UI
    /// </summary>
    public interface IProjectService
    {
        #region  Commands

        /// <summary>
        /// 创建项目
        /// </summary>
        /// <param name="project"></param>
        /// <returns></returns>
        Task<Project> CreateProjectAsync(Project project);

        /// <summary>
        /// 添加项目参与者
        /// </summary>
        /// <param name="projectId">项目名称</param>
        /// <param name="contributorList">待添加的 参与者列表</param>
        /// <returns></returns>
        Task AddContributorAsync(int projectId,List<ProjectContributor> contributorList);

        /// <summary>
        /// 移除项目参与者
        /// </summary>
        /// <param name="projectId">项目名称</param>
        /// <param name="">需移除的 参与者列表</param>
        /// <returns></returns>
        Task RemoveContributorAsync(int projectId,List<ProjectContributor> contributorList);

        /// <summary>
        /// 添加意见
        /// </summary>
        /// <param name="projectId">项目ID</param>
        /// <param name="userId">用户ID</param>
        /// <param name="userName">用户名称</param>
        /// <param name="message">意见内容</param>
        /// <returns></returns>
        Task AddAuditAdviceAsync(int projectId, int userId,string userName,string message);


        /// <summary>
        /// 添加项目清单
        /// </summary>
        /// <param name="projectId">项目ID</param>
        /// <param name="consumablies">项目清单</param>
        /// <returns></returns>
        Task AddConsumableAsync(int projectId, List<ProjectConsumable> consumablies);



        /// <summary>
        /// 移除项目清单
        /// </summary>
        /// <param name="projectId">项目ID</param>
        /// <param name="consumablies">项目清单</param>
        /// <returns></returns>
        Task RemoveConsuableAsync(int projectId, List<ProjectConsumable> consumablies);


        /// <summary>
        /// 更新项目清单
        /// </summary>
        /// <param name="projectId">项目ID</param>
        /// <param name="projectConsumable">项目清单</param>
        /// <returns></returns>
        Task UpdateConsumableAsync(int projectId, ProjectConsumable projectConsumable);


        #endregion

    }
}
